-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure the output from the ros node launch #87
base: master
Are you sure you want to change the base?
Conversation
@fcolas @esteve @LukePhairatt @bdholt1 FYI I added this commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a minor comment.
nodes/mtnode.py
Outdated
@@ -57,6 +57,7 @@ def __init__(self): | |||
baudrate = get_param('~baudrate', 0) | |||
timeout = get_param('~timeout', 0.002) | |||
initial_wait = get_param('~initial_wait', 0.1) | |||
output_config = get_param('~output_config', '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why you don't set the same default as in the launch file here? oq,ad,wd,mf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no particular reason ... so I added them in, to stick to your original style of default params
Many thanks for this contribution. However, I won't accept it as this since I don't want to needlessly update the configuration. I assume that you're aware that the configuration is stored on the device and, unless you are switching configuration time, you need to do the |
I added one the missing configuration option in the ros-node launch. Removed tabs in that file.
feature
being able to decide what output the sensor should publish (for example, mag.field + lin.accel.)
before
python mtdevice.py --configure "ad,mg"
roslaunch xsens_driver xsens_driver.launch
after
roslaunch xsens_driver xsens_driver.launch
// the .launch file including that config